Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders C

Total Complexity 108
Dependencies 7
Dependents 6
Total lines 952
Lines of code 460
Logical lines of code 233
Comment lines 326
Methods 27
Properties 4

Methods 27

Method Rating Maintainability Complexity Lines of code
get_extension_suggestions()
C
36 23 86
enhance_order_map()
B
37 15 80
enhance_payment_gateway_details()
A
41 15 57
enhance_extension_suggestion()
A
47 10 36
payment_providers_order_map_apply_mappings()
A
50 8 30
hide_extension_suggestion()
S
50 7 30
get_payment_gateways()
S
56 4 20
get_gateway_provider_instance()
S
61 4 14
is_payment_extension_suggestion_hidden()
S
62 3 11
get_extension_suggestion_categories()
S
55 1 22
has_enabled_ecommerce_gateways()
S
64 2 10
reset_memo()
S
81 1 3
get_suggestion_id_from_order_map_id()
S
79 1 3
is_suggestion_order_map_id()
S
78 1 3
get_suggestion_order_map_id()
S
80 1 3
init()
S
80 1 3
update_payment_providers_order_map()
S
68 1 7
save_order_map()
S
79 1 3
get_extension_suggestion_by_plugin_slug()
S
79 1 3
get_extension_suggestion_by_id()
S
80 1 3
is_offline_payment_method()
S
79 1 3
get_offline_payment_methods_gateways()
S
69 1 8
get_payment_gateway_plugin_file()
S
75 1 4
get_payment_gateway_plugin_slug()
S
75 1 4
get_payment_gateway_base_details()
S
74 1 4
get_payment_gateway_details()
S
70 1 7
get_order_map()
S
79 1 3